<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <head>

    </head>
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
            <ui:define name="content_nav">
                #{msg.content_nav_lxkrmanage}
            </ui:define>
            <ui:define name="content">
                <h:form id="iptLxkrPrjForm">
                    <h:panelGrid  styleClass="body_content_box" columns="1">
                        <h:messages globalOnly="true" infoClass="info"  errorClass="alert" fatalClass="colorOrange" />
                        <h:panelGrid styleClass="search_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_lxkr_detail}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                            <h:panelGrid styleClass="panelGrid_bottom_line" style="width: 100%" cellpadding="0" border="0" cellspacing="0">
                                <h:panelGrid columns="1" cellspacing="6" style="width: 95%">
                                    <!--  区域、小区名、工程覆盖类型、扩容类型   --> 
                                    <h:panelGrid  styleClass="panelGrid_bottom_line" columns="3" cellspacing="5" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_75,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_user_domain}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectInfo.domainInfo.domainId}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                                <f:selectItems value="#{itscListBean.userDomainList}"/>
                                            </h:selectOneMenu>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.domainInfo.domainName}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_120" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_residence_name}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.residenceName}" rendered="#{lxkrProjectListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.residenceName}" rendered="#{lxkrProjectListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_cover_type}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectInfo.coverType}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                                <f:selectItems value="#{lxkrProjectListBean.coverTypeList}"/>
                                            </h:selectOneMenu>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.displayCoverType}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_advance_type}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectInfo.advanceType}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                                <f:selectItems value="#{lxkrProjectListBean.advanceTypeList}"/>
                                            </h:selectOneMenu>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.displayAdvanceType}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <!--  规模及投资信息   -->
                                        <h:panelGrid columnClasses="com_width_120,com_width_120" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_dp_quantity}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.dpQuantity}" rendered="#{lxkrProjectListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.dpQuantity}" rendered="#{lxkrProjectListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_estimated_invest}" styleClass="com_label_blue">
                                            </h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.estimatedInvest}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                            </h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.estimatedInvest}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>  
                                        <h:panelGrid columnClasses="com_width_120,com_width_200" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_expansion_scope}" styleClass="com_label_blue">
                                            </h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.expansionScope}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                            </h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.expansionScope}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>    
                                    </h:panelGrid>
                                    <h:panelGrid  styleClass="panelGrid_bottom_line" columns="1" cellspacing="5" style="width:100%;text-align: left" >
                                        <h:panelGrid  columns="5" cellspacing="0" style="width:80%;text-align: left" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                            <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                                <h:outputLabel value="#{msg.table_column_mater_type}" styleClass="com_label_blue"></h:outputLabel>
                                                <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectMaterial.materType}" 
                                                                 rendered="#{lxkrProjectListBean.currentOperation >= 2}"
                                                                 onchange="submit();"
                                                                 valueChangeListener="#{lxkrProjectListBean.materTypeChanged}">
                                                    <f:selectItems value="#{lxkrProjectListBean.materTypeList}"/>
                                                </h:selectOneMenu>
                                            </h:panelGrid>
                                             <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                                <h:outputLabel value="#{msg.table_column_mater_detail}" styleClass="com_label_blue"></h:outputLabel>
                                                <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectMaterial.mmaterDetail}" 
                                                                 rendered="#{lxkrProjectListBean.currentOperation >= 2}"  >
                                                    <f:selectItems value="#{lxkrProjectListBean.materTypeDetailList}"/>
                                                </h:selectOneMenu>
                                            </h:panelGrid>
                                            <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                                <h:outputLabel value="#{msg.table_column_mater_unit}" styleClass="com_label_blue"></h:outputLabel>
                                                <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectMaterial.materUnit}" 
                                                                 rendered="#{lxkrProjectListBean.currentOperation >= 2}"  >
                                                    <f:selectItems value="#{lxkrProjectListBean.materUnitList}"/>
                                                </h:selectOneMenu>
                                            </h:panelGrid>
                                            <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="3" border="0" cellspacing="0">
                                                <h:outputLabel value="#{msg.table_column_mater_quantity}" styleClass="com_label_blue"></h:outputLabel>
                                                <h:inputText value="#{lxkrProjectListBean.currentProjectMaterial.materQuantity}" rendered="#{lxkrProjectListBean.currentOperation >= 2}"></h:inputText>
                                            </h:panelGrid>
                                          <h:commandButton value="#{msg.bt_add}"  action="#{lxkrProjectListBean.addMaterial}" rendered="#{lxkrProjectListBean.currentOperation >= 2}" />
                                        </h:panelGrid>
                                    <t:dataTable id="dataTable" value="#{lxkrProjectListBean.materials}"
                                                 headerClass="table_header" var="material"
                                                 styleClass="mxl"
                                                 rowClasses="list-row1-background,list-row2-background"
                                                 >
                                        <t:column  width="20%" >
                                            <f:facet name="header">
                                                <h:outputText value="#{msg.table_column_mater_type}" />
                                            </f:facet>
                                            <h:outputText value="#{material.materType}"/>
                                        </t:column>
                                        <t:column  width="20%" >
                                            <f:facet name="header">
                                                <h:outputText value="#{msg.table_column_mater_detail}" />
                                            </f:facet>
                                            <h:outputText value="#{material.mmaterDetail}"/>
                                        </t:column>
                                        <t:column  width="10%" >
                                            <f:facet name="header">
                                                <h:outputText value="#{msg.table_column_mater_unit}" />
                                            </f:facet>
                                            <h:outputText value="#{material.materUnit}"/>
                                        </t:column>
                                        <t:column  width="20%" >
                                            <f:facet name="header">
                                                <h:outputText value="#{msg.table_column_mater_quantity}" />
                                            </f:facet>
                                            <h:outputText value="#{material.materQuantity}"/>
                                        </t:column>
                                        <t:column width="10%" rendered="#{lxkrProjectListBean.currentOperation >= 2}"  >
                                            <f:facet name="header" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                                <h:outputText/>
                                            </f:facet>
                                            <h:commandLink  action="#{lxkrProjectListBean.deleteMeterial}" value="#{msg.lnk_delete}" rendered="#{lxkrProjectListBean.currentOperation >= 2}"/>
                                        </t:column>
                                    </t:dataTable>
                                    </h:panelGrid>
                                    <!--  进度信息  -->
                                    <h:panelGrid  styleClass="panelGrid_bottom_line" columns="3" cellspacing="5" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_120,com_width_80" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_to_require_date}" styleClass="com_label_blue"></h:outputLabel>
                                            <t:inputCalendar value="#{lxkrProjectListBean.currentProjectInfo.toRequireDate}"  rendered="#{lxkrProjectListBean.currentOperation >= 2}"
                                                             renderAsPopup="true" popupDateFormat="yyyy-MM-dd" helpText="YYYY-MM-DD"
                                                             popupButtonString="..." popupTheme="WH" />
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.toRequireDate}"  rendered="#{lxkrProjectListBean.currentOperation == 1}">
                                                <f:convertDateTime pattern="yyyy-MM-dd"  timeZone="GMT+8" />
                                            </h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_80" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_to_done_date}" styleClass="com_label_blue"></h:outputLabel>
                                            <t:inputCalendar value="#{lxkrProjectListBean.currentProjectInfo.toDoneDate}"  rendered="#{lxkrProjectListBean.currentOperation >= 2}"
                                                             renderAsPopup="true" popupDateFormat="yyyy-MM-dd" helpText="YYYY-MM-DD"
                                                             popupButtonString="..." popupTheme="WH" />
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.toDoneDate}"  rendered="#{lxkrProjectListBean.currentOperation == 1}">
                                                <f:convertDateTime pattern="yyyy-MM-dd"  timeZone="GMT+8" />
                                            </h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_80" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_start_date}" styleClass="com_label_blue"></h:outputLabel>
                                            <t:inputCalendar value="#{lxkrProjectListBean.currentProjectInfo.startDate}"  rendered="#{lxkrProjectListBean.currentOperation >= 2}"
                                                             renderAsPopup="true" popupDateFormat="yyyy-MM-dd" helpText="YYYY-MM-DD"
                                                             popupButtonString="..." popupTheme="WH" />
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.startDate}"  rendered="#{lxkrProjectListBean.currentOperation == 1}">
                                                <f:convertDateTime pattern="yyyy-MM-dd"  timeZone="GMT+8" />
                                            </h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_120,com_width_80" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_end_date}" styleClass="com_label_blue"></h:outputLabel>
                                            <t:inputCalendar value="#{lxkrProjectListBean.currentProjectInfo.doneDate}"  rendered="#{lxkrProjectListBean.currentOperation >= 2}"
                                                             renderAsPopup="true" popupDateFormat="yyyy-MM-dd" helpText="YYYY-MM-DD"
                                                             popupButtonString="..." popupTheme="WH" />
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.doneDate}"  rendered="#{lxkrProjectListBean.currentOperation == 1}">
                                                <f:convertDateTime pattern="yyyy-MM-dd"  timeZone="GMT+8" />
                                            </h:outputText>
                                        </h:panelGrid>
                                    </h:panelGrid>

                                    <!--  施工单位信息  -->
                                    <h:panelGrid  styleClass="panelGrid_bottom_line" columns="3" cellspacing="5" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_contact_name}" styleClass="com_label_blue">
                                            </h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.contactName}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                            </h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.contactName}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>   
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_contact_phone}" styleClass="com_label_blue">
                                            </h:outputLabel>
                                            <h:inputText value="#{lxkrProjectListBean.currentProjectInfo.contactPhone}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                            </h:inputText>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.contactPhone}" rendered="#{lxkrProjectListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid> 
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="3" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_const_enterprise}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:selectOneMenu value="#{lxkrProjectListBean.currentProjectInfo.enterpriseInfo.enterpriseId}" rendered="#{lxkrProjectListBean.currentOperation >= 2}">
                                                <f:selectItems value="#{paymentBean.enterpriseList}"/>
                                            </h:selectOneMenu>
                                            <h:outputText value="#{lxkrProjectListBean.currentProjectInfo.enterpriseInfo.enterpriseName}" rendered="#{lxkrProjectListBean.currentOperation == 1}"/>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                    <h:panelGrid styleClass="panelGrid_bottom_line" columns="2" cellspacing="5" style="width:100%;text-align: left">
                                        <h:panelGrid columns="2">
                                            <h:commandButton value="#{msg.bt_return}" action="#{lxkrProjectListBean.toLastPage}"/>
                                            <h:commandButton value="#{msg.bt_submit_lxkr_project}"  action="#{lxkrProjectListBean.saveLxkrProject}" rendered="#{lxkrProjectListBean.currentOperation >= 2}" />
                                        </h:panelGrid>
                                        <h:outputLabel></h:outputLabel>
                                    </h:panelGrid>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </h:panelGrid>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>